// mine.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      nick_name:'',
      avatar_url:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
      var that = this
      wx.getStorage({
          key: 'msg',
          success: function (res) {
              // console.log(res.data)
              that.setData({
                  nick_name: res.data.nick_name,
                  avatar_url: res.data.avatar_url
              })
          }
      })
  },
  toAdvisePage:function(){    //跳转到意见反馈页面
      wx.navigateTo({
          url: '../advise/advise'
      })
  },
  toAboutusPage: function () {    //跳转到关于我们
      wx.navigateTo({
          url: '../aboutus/aboutus'
      })
  },
  toMytestPage:function(){
      wx.navigateTo({
          url: '../mytest/mytest'
      }) 
  }
})